﻿
using com.guojin.core.io.message;
using com.guojin.core.io;

namespace com.guojin.mj.net.message.login
{
    public class LMLitem : Message
    {
        public static int TYPE = 7;
        public static int ID = 103;

        /**
		 * 加入类型: 0代表自己的 1代表别人的
		 *  
		 */
        private int type;
        /***头像地址
		 */
        private string address;
        /*** 名称 */
        private string lmName;
        /*** 俱乐部编号 */
        private int lmId;
        /*** 俱乐部创建人姓名 */
        private string createName;
        /*** 俱乐部现有人数 */
        private int nowPeople;
        /*** 俱乐部总人数 */
        private int allPeople;
        /** 俱乐部公告 */
        private string content;
        private bool money;
        public int Type
        {
            get
            {
                return type;
            }

            set
            {
                type = value;
            }
        }

        public string Address
        {
            get
            {
                return address;
            }

            set
            {
                address = value;
            }
        }

        public string LmName
        {
            get
            {
                return lmName;
            }

            set
            {
                lmName = value;
            }
        }

        public int LmId
        {
            get
            {
                return lmId;
            }

            set
            {
                lmId = value;
            }
        }

        public string CreateName
        {
            get
            {
                return createName;
            }

            set
            {
                createName = value;
            }
        }

        public int NowPeople
        {
            get
            {
                return nowPeople;
            }

            set
            {
                nowPeople = value;
            }
        }

        public int AllPeople
        {
            get
            {
                return allPeople;
            }

            set
            {
                allPeople = value;
            }
        }

        public string Content
        {
            get
            {
                return content;
            }

            set
            {
                content = value;
            }
        }

        public bool Money
        {
            get
            {
                return money;
            }

            set
            {
                money = value;
            }
        }

        public void decode(core.io.Input _in)
        {
            type = _in.readInt();
            address = _in.readString();
            lmName = _in.readString();
            lmId = _in.readInt();
            createName= _in.readString();
            nowPeople = _in.readInt();
            allPeople= _in.readInt();
            content= _in.readString();
            money = _in.readBoolean();
        }

        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "";
        }
    }
}
